home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
World of Video
/
World of Video.iso
/
gfxprograms
/
3dprograms
/
rayshade-4.0
/
rayfiles
/
rsdefs
/
objects
/
jewels.rh
< prev
next >
Wrap
Text File
|
1995-02-13
|
4KB
|
126 lines
/************************************************************************
*
* jewels.rh
*
* This is an #include file for the Rayshade Standard Header
* Files. It defines the "rounded" superprimitives in the package.
*
* Please do not edit this file, or any of the other files in
* this package! Make additions to these in your own separate
* file. If you think you have something that should be added
* permanently, please send it to Larry Coffin and/or David
* DeBry (email addresses listed below). If we include it in
* the next release, we'll put your name in the contributor's
* list.
*
* Contributors (in alphabetical order):
* Larry Coffin <lcoffin@clciris.chem.umr.edu>
* David DeBry <ddebry@dsd.es.com>
*/
#ifndef RSHF_JEWELS
#define RSHF_JEWELS
/*************************************************************************
*
*/
#define RSPv0003_edge_y 1
#define RSPv0003_edge_rad 2
#define RSPv0003_tip_y 3
#define RSPjewel8pt(prefix,surf) \
name RSPj8pt_face \
polygon .4142 0 1 \
1 0 .4142 \
1 0 -.4142 \
.4142 0 -1 \
-.4142 0 -1 \
-1 0 -.4142 \
-1 0 .4142 \
-.4142 0 1 \
name RSPj8pt_facets list \
triangle 1 0 .4142 \
1 0 -.4142 \
(RSPv0003_edge_rad) (RSPv0003_edge_y) 0 \
triangle 1 0 .4142 \
(RSPv0003_edge_rad) (RSPv0003_edge_y) 0 \
(.7071 * RSPv0003_edge_rad) \
(RSPv0003_edge_y) \
(.7071 * RSPv0003_edge_rad) \
polygon (RSPv0003_edge_rad) (RSPv0003_edge_y) 0 \
0 (RSPv0003_tip_y) 0 \
(.7071 * RSPv0003_edge_rad) \
(RSPv0003_edge_y) \
(.7071 * RSPv0003_edge_rad) \
end \
name RSPj8pt list \
object RSPj8pt_face \
object RSPj8pt_facets \
object RSPj8pt_facets \
rotate 0 -1 0 45 \
object RSPj8pt_facets \
rotate 0 -1 0 90 \
object RSPj8pt_facets \
rotate 0 -1 0 135 \
object RSPj8pt_facets \
rotate 0 -1 0 180 \
object RSPj8pt_facets \
rotate 0 -1 0 225 \
object RSPj8pt_facets \
rotate 0 -1 0 270 \
object RSPj8pt_facets \
rotate 0 -1 0 315 \
end \
translate 0 (-RSPv0003_tip_y) 0 \
scale (1/ RSPv0003_tip_y) (1/ RSPv0003_tip_y) (1/ RSPv0003_tip_y) \
prefix object surf RSPj8pt
#define RSPmounted_jewel8pt(prefix,jewel_surf,bracket_surf) \
RSPjewel8pt(name RSPm_jewel,) \
name RSPbracket_arm union \
union \
sphere .15 1.6 .6 0 \
list \
cylinder .15 1.6 .6 0 1.9 1.03 0 \
disc .15 1.6 .6 0 (1.6 - 1.9) (.6 - 1.03) 0 \
disc .15 1.9 1.03 0 (1.9 - 1.6) (1.03 - .6) 0 \
end \
end \
union \
sphere .15 1.9 1.03 0 \
list \
cylinder .15 1.9 1.03 0 0 3.1 0 \
disc .15 1.9 1.03 0 (1.9) (1.03 - 3.1) 0 \
disc .15 0 3.1 0 (0 - 1.9) (3.1 - 1.03) 0 \
end \
end \
end \
rotate 0 -1 0 22.5 \
name RSPbracket difference \
list \
object RSPbracket_arm \
object RSPbracket_arm \
rotate 0 1 0 90 \
object RSPbracket_arm \
rotate 0 1 0 180 \
object RSPbracket_arm \
rotate 0 1 0 -90 \
sphere .15 0 3.1 0 \
end \
translate 0 (-RSPv0003_tip_y) 0 \
scale (1/ RSPv0003_tip_y) \
(1/ RSPv0003_tip_y) \
(1/ RSPv0003_tip_y) \
object RSPm_jewel \
end \
name RSPmounted_8pt list \
object jewel_surf RSPm_jewel \
object bracket_surf RSPbracket \
end \
prefix object RSPmounted_8pt \
#endif RSHF_JEWELS